package task

import (
	"gitea.in/wx-rdc/service-base/internal/pkg/core"
	"gitea.in/wx-rdc/service-base/internal/repository/mysql"
	"gitea.in/wx-rdc/service-base/internal/services/task"

	"go.uber.org/zap"
)

type Handler interface {
	i()

	List() core.HandlerFunc
}

type handler struct {
	logger      *zap.Logger
	db          mysql.Repo
	taskService task.Service
}

func New(logger *zap.Logger, db mysql.Repo) Handler {
	return &handler{
		logger:      logger,
		db:          db,
		taskService: task.New(logger, db),
	}
}

func (h *handler) i() {}
